package com.gadgets.cm01.user.service;

import com.gadgets.cm01.user.dto.UserInfoOperationDTO;
import com.gadgets.cm01.user.dto.UserLoginDTO;
import com.gadgets.cm01.user.pojo.User;
import com.gadgets.framework.common.exception.GadgetsException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author UncleXiu
 * @version V1.0.0
 * @data 2020-09-17
 *
 */
public interface IUserLoginService {

    /**
     * 用户登录
     * @param request                       请求信息
     * @param response                      应答信息
     * @param userLoginDTO                  用户登录信息
     * @throws GadgetsException     校验信息
     */
    public User loginIn(HttpServletRequest request, HttpServletResponse response, UserLoginDTO userLoginDTO) throws GadgetsException;

    /**
     * 更新用户密码错误次数
     * @param user              用户信息
     * @throws GadgetsException 异常信息
     */
    public void updateUserPwdTm(UserInfoOperationDTO user) throws GadgetsException;

}
